package com.lyncs.ods.req;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author alex
 * @date 2022/4/2 23:35
 * @description
 */
@Data
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class SaveStaffReq {

    @NotNull
    private List<StaffInfo> staffInfos;

    @Data
    @JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
    public static class StaffInfo {

        @ApiModelProperty(value = "用户ID")
        private Long userId;

        @ApiModelProperty("用户昵称")
        private String nickname;

        @ApiModelProperty(value = "岗位")
        private String post;

        @ApiModelProperty(value = "备注")
        private String remark;
    }
}
